Open the Windows Picture and Fax Viewer to open the picture, the relevant code is as follows:Create a new system processSystem.Diagnostics.Process Process = new System.Diagnostics.Process ();Set the file name, here is the true path of the picture + file nameProcess. Startinfo.filename = FileName;This is a critical part. Sets the process run parameters, at which time the picture is displayed for the maximize
when you open a picture with the Windows Picture and Fax Viewer from the XP system, you always show the error prompt for drawing failed. the cause of this problem is that the related registry entries for Windows Picture and Fax Viewer are corrupted, please follow these steps to recover.
Steps/Methods
1. Start-run
If an image contains an image with an RGB value of 0xF7F7F7, the image area is heavily colored in the image and fax viewer. Put it in the drawing program for comparison and you can see it (you can also see it without comparison, just to have a physical evidence ).In a simple example, select the view mode as detailed information in the resource manager of XP. Then, the base color of the sorting column is 0xF
//Create a new system processSystem.Diagnostics.Process Process =NewSystem.Diagnostics.Process (); //set the file name, here is the true path of the picture + file nameProcess. Startinfo.filename =FileName; //This is a critical part. Sets the process run parameters, at which time the picture is displayed for the maximized window. Process. Startinfo.arguments ="rundll32.exe C://windows//system32//shimgvw.dll,imageview_fullscreen"; //This entry is not available if the shell is used to execute the
Reason Analysis:
Because the Windows Picture and Fax Viewer does not exist programmatically, the form of a dynamic-link library exists in the Explorer.exe program, with the name C: Windowssystem32shimgvw.dll, while Shimgvw.dll is inserted into the EXPLORER.EXE main program as a thread, one of the benefits of a dynamic-link library (DLL) is to reduce system resource production without creating a separate pr
Reason analysis:
The Windows Picture and Fax Viewer is not in the program's way, but in the form of a dynamic-link library in the Explorer.exe program. The name is C:windowssystem32shimgvw.dll.
Shimgvw.dll as a thread into the EXPLORER.EXE main program.
One of the benefits of a dynamic-link library (DLL) is to reduce system resource generation, and instead of creating a separate program for it, insert ot
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.